using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;

namespace EditorFrameWork
{
    [CustomEditorWindow(5)]
    public class FolderFieldExample : EditorWindow
    {
        private FolderField m_FolderField;

        private void OnEnable()
        {
            m_FolderField = new FolderField();
        }

        private void OnGUI()
        {
            GUILayout.Label("Folder Field");
            var rect = EditorGUILayout.GetControlRect(GUILayout.Height(20));
            m_FolderField.OnGUI(rect);
        }
    }
}